<?php


/*foreach (getallheaders() as $name => $value) {
    echo "$name: $value\n";
}*/
$user_id = $_GET['user_id'];
if(intval($user_id) == 0){
    echo json_encode(array('status'=>'error','msg'=>'illegal request(user_id)','data'=>''));
    exit;	
}
 
$token = 'user_id'.$user_id.':eqityuriqeofjdasl';
echo json_encode(array('status'=>'ok','msg'=>'successful!','data'=>$token));

?> 